class Person12 {
  name = "dell";
  getName() {
    return this.name;
  }
}

class Teacher12 extends Person12 {
  getTeacherName() {
    return "Teacher";
  }
  getName() {
    // super.getName() 表示执行父类的 getName 方法
    return super.getName() + "lee";
  }
}

const teacher12 = new Teacher12();
console.log(teacher12.getName());
console.log(teacher12.getTeacherName());
